projects
/
gtk4.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
aa9bb7d
)
Accept "true" as a true value in printer settings
author
Matthias Clasen
<mclasen@redhat.com>
Wed, 9 Sep 2009 15:52:07 +0000
(11:52 -0400)
committer
Matthias Clasen
<mclasen@redhat.com>
Wed, 9 Sep 2009 15:52:07 +0000
(11:52 -0400)
Some of the settings come directly from cups config files, which
have no case sensitivity requirement, so we should not be more
picky. Bug 594652.
gtk/gtkprinteroptionwidget.c
patch
|
blob
|
history
diff --git
a/gtk/gtkprinteroptionwidget.c
b/gtk/gtkprinteroptionwidget.c
index d91b51c591cfb000e5c1c6c9a8881ce2eecdec43..468768fb33b58879f20d8d047af73d973fa39ad8 100644
(file)
--- a/
gtk/gtkprinteroptionwidget.c
+++ b/
gtk/gtkprinteroptionwidget.c
@@
-854,7
+854,7
@@
update_widgets (GtkPrinterOptionWidget *widget)
switch (source->type)
{
case GTK_PRINTER_OPTION_TYPE_BOOLEAN:
- if (
str
cmp (source->value, "True") == 0)
+ if (
g_ascii_strcase
cmp (source->value, "True") == 0)
gtk_toggle_button_set_active (GTK_TOGGLE_BUTTON (priv->check), TRUE);
else
gtk_toggle_button_set_active (GTK_TOGGLE_BUTTON (priv->check), FALSE);